package com.whmskj.xjlhbc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhbc.domain.Scdb;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ScdbMapper extends BaseMapper<Scdb> {

    @Select("select * from xjbc.sc_db where id in(select max(id) from xjbc.sc_db group by dbname,device)")
    List<Scdb> select();
}
